QT       += core gui
QT       += charts
QT       += serialport

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += c++17

# You can make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    LVGL_API.cpp \
    MY_QT_DEF.cpp \
    examples/porting/lv_port_disp.cpp \
    examples/porting/lv_port_indev.cpp \
    main.cpp \
    mainwindow.cpp \
    src/core/lv_disp.c \
    src/core/lv_event.c \
    src/core/lv_group.c \
    src/core/lv_indev.c \
    src/core/lv_indev_scroll.c \
    src/core/lv_obj.c \
    src/core/lv_obj_class.c \
    src/core/lv_obj_draw.c \
    src/core/lv_obj_pos.c \
    src/core/lv_obj_scroll.c \
    src/core/lv_obj_style.c \
    src/core/lv_obj_style_gen.c \
    src/core/lv_obj_tree.c \
    src/core/lv_refr.c \
    src/core/lv_theme.c \
    src/draw/arm2d/lv_gpu_arm2d.c \
    src/draw/lv_draw.c \
    src/draw/lv_draw_arc.c \
    src/draw/lv_draw_img.c \
    src/draw/lv_draw_label.c \
    src/draw/lv_draw_layer.c \
    src/draw/lv_draw_line.c \
    src/draw/lv_draw_mask.c \
    src/draw/lv_draw_rect.c \
    src/draw/lv_draw_transform.c \
    src/draw/lv_draw_triangle.c \
    src/draw/lv_img_buf.c \
    src/draw/lv_img_cache.c \
    src/draw/lv_img_decoder.c \
    src/draw/nxp/pxp/lv_draw_pxp.c \
    src/draw/nxp/pxp/lv_draw_pxp_blend.c \
    src/draw/nxp/pxp/lv_gpu_nxp_pxp.c \
    src/draw/nxp/pxp/lv_gpu_nxp_pxp_osa.c \
    src/draw/nxp/vglite/lv_draw_vglite.c \
    src/draw/nxp/vglite/lv_draw_vglite_arc.c \
    src/draw/nxp/vglite/lv_draw_vglite_blend.c \
    src/draw/nxp/vglite/lv_draw_vglite_line.c \
    src/draw/nxp/vglite/lv_draw_vglite_rect.c \
    src/draw/nxp/vglite/lv_vglite_buf.c \
    src/draw/nxp/vglite/lv_vglite_utils.c \
    src/draw/renesas/lv_gpu_d2_draw_label.c \
    src/draw/renesas/lv_gpu_d2_ra6m3.c \
    src/draw/sdl/lv_draw_sdl.c \
    src/draw/sdl/lv_draw_sdl_arc.c \
    src/draw/sdl/lv_draw_sdl_bg.c \
    src/draw/sdl/lv_draw_sdl_composite.c \
    src/draw/sdl/lv_draw_sdl_img.c \
    src/draw/sdl/lv_draw_sdl_label.c \
    src/draw/sdl/lv_draw_sdl_layer.c \
    src/draw/sdl/lv_draw_sdl_line.c \
    src/draw/sdl/lv_draw_sdl_mask.c \
    src/draw/sdl/lv_draw_sdl_polygon.c \
    src/draw/sdl/lv_draw_sdl_rect.c \
    src/draw/sdl/lv_draw_sdl_stack_blur.c \
    src/draw/sdl/lv_draw_sdl_texture_cache.c \
    src/draw/sdl/lv_draw_sdl_utils.c \
    src/draw/stm32_dma2d/lv_gpu_stm32_dma2d.c \
    src/draw/sw/lv_draw_sw.c \
    src/draw/sw/lv_draw_sw_arc.c \
    src/draw/sw/lv_draw_sw_blend.c \
    src/draw/sw/lv_draw_sw_dither.c \
    src/draw/sw/lv_draw_sw_gradient.c \
    src/draw/sw/lv_draw_sw_img.c \
    src/draw/sw/lv_draw_sw_layer.c \
    src/draw/sw/lv_draw_sw_letter.c \
    src/draw/sw/lv_draw_sw_line.c \
    src/draw/sw/lv_draw_sw_polygon.c \
    src/draw/sw/lv_draw_sw_rect.c \
    src/draw/sw/lv_draw_sw_transform.c \
    src/draw/swm341_dma2d/lv_gpu_swm341_dma2d.c \
    src/extra/layouts/flex/lv_flex.c \
    src/extra/layouts/grid/lv_grid.c \
    src/extra/libs/bmp/lv_bmp.c \
    src/extra/libs/ffmpeg/lv_ffmpeg.c \
    src/extra/libs/freetype/lv_freetype.c \
    src/extra/libs/fsdrv/lv_fs_fatfs.c \
    src/extra/libs/fsdrv/lv_fs_littlefs.c \
    src/extra/libs/fsdrv/lv_fs_posix.c \
    src/extra/libs/fsdrv/lv_fs_stdio.c \
    src/extra/libs/fsdrv/lv_fs_win32.c \
    src/extra/libs/gif/gifdec.c \
    src/extra/libs/gif/lv_gif.c \
    src/extra/libs/png/lodepng.c \
    src/extra/libs/png/lv_png.c \
    src/extra/libs/qrcode/lv_qrcode.c \
    src/extra/libs/qrcode/qrcodegen.c \
    src/extra/libs/rlottie/lv_rlottie.c \
    src/extra/libs/sjpg/lv_sjpg.c \
    src/extra/libs/sjpg/tjpgd.c \
    src/extra/libs/tiny_ttf/lv_tiny_ttf.c \
    src/extra/lv_extra.c \
    src/extra/others/fragment/lv_fragment.c \
    src/extra/others/fragment/lv_fragment_manager.c \
    src/extra/others/gridnav/lv_gridnav.c \
    src/extra/others/ime/lv_ime_pinyin.c \
    src/extra/others/imgfont/lv_imgfont.c \
    src/extra/others/monkey/lv_monkey.c \
    src/extra/others/msg/lv_msg.c \
    src/extra/others/snapshot/lv_snapshot.c \
    src/extra/themes/basic/lv_theme_basic.c \
    src/extra/themes/default/lv_theme_default.c \
    src/extra/themes/mono/lv_theme_mono.c \
    src/extra/widgets/animimg/lv_animimg.c \
    src/extra/widgets/calendar/lv_calendar.c \
    src/extra/widgets/calendar/lv_calendar_header_arrow.c \
    src/extra/widgets/calendar/lv_calendar_header_dropdown.c \
    src/extra/widgets/chart/lv_chart.c \
    src/extra/widgets/colorwheel/lv_colorwheel.c \
    src/extra/widgets/imgbtn/lv_imgbtn.c \
    src/extra/widgets/keyboard/lv_keyboard.c \
    src/extra/widgets/led/lv_led.c \
    src/extra/widgets/list/lv_list.c \
    src/extra/widgets/menu/lv_menu.c \
    src/extra/widgets/meter/lv_meter.c \
    src/extra/widgets/msgbox/lv_msgbox.c \
    src/extra/widgets/span/lv_span.c \
    src/extra/widgets/spinbox/lv_spinbox.c \
    src/extra/widgets/spinner/lv_spinner.c \
    src/extra/widgets/tabview/lv_tabview.c \
    src/extra/widgets/tileview/lv_tileview.c \
    src/extra/widgets/win/lv_win.c \
    src/font/lv_font.c \
    src/font/lv_font_dejavu_16_persian_hebrew.c \
    src/font/lv_font_fmt_txt.c \
    src/font/lv_font_loader.c \
    src/font/lv_font_montserrat_10.c \
    src/font/lv_font_montserrat_12.c \
    src/font/lv_font_montserrat_12_subpx.c \
    src/font/lv_font_montserrat_14.c \
    src/font/lv_font_montserrat_16.c \
    src/font/lv_font_montserrat_18.c \
    src/font/lv_font_montserrat_20.c \
    src/font/lv_font_montserrat_22.c \
    src/font/lv_font_montserrat_24.c \
    src/font/lv_font_montserrat_26.c \
    src/font/lv_font_montserrat_28.c \
    src/font/lv_font_montserrat_28_compressed.c \
    src/font/lv_font_montserrat_30.c \
    src/font/lv_font_montserrat_32.c \
    src/font/lv_font_montserrat_34.c \
    src/font/lv_font_montserrat_36.c \
    src/font/lv_font_montserrat_38.c \
    src/font/lv_font_montserrat_40.c \
    src/font/lv_font_montserrat_42.c \
    src/font/lv_font_montserrat_44.c \
    src/font/lv_font_montserrat_46.c \
    src/font/lv_font_montserrat_48.c \
    src/font/lv_font_montserrat_8.c \
    src/font/lv_font_simsun_16_cjk.c \
    src/font/lv_font_unscii_16.c \
    src/font/lv_font_unscii_8.c \
    src/hal/lv_hal_disp.c \
    src/hal/lv_hal_indev.c \
    src/hal/lv_hal_tick.c \
    src/misc/lv_anim.c \
    src/misc/lv_anim_timeline.c \
    src/misc/lv_area.c \
    src/misc/lv_async.c \
    src/misc/lv_bidi.c \
    src/misc/lv_color.c \
    src/misc/lv_fs.c \
    src/misc/lv_gc.c \
    src/misc/lv_ll.c \
    src/misc/lv_log.c \
    src/misc/lv_lru.c \
    src/misc/lv_math.c \
    src/misc/lv_mem.c \
    src/misc/lv_printf.c \
    src/misc/lv_style.c \
    src/misc/lv_style_gen.c \
    src/misc/lv_templ.c \
    src/misc/lv_timer.c \
    src/misc/lv_tlsf.c \
    src/misc/lv_txt.c \
    src/misc/lv_txt_ap.c \
    src/misc/lv_utils.c \
    src/widgets/lv_arc.c \
    src/widgets/lv_bar.c \
    src/widgets/lv_btn.c \
    src/widgets/lv_btnmatrix.c \
    src/widgets/lv_canvas.c \
    src/widgets/lv_checkbox.c \
    src/widgets/lv_dropdown.c \
    src/widgets/lv_img.c \
    src/widgets/lv_label.c \
    src/widgets/lv_line.c \
    src/widgets/lv_objx_templ.c \
    src/widgets/lv_roller.c \
    src/widgets/lv_slider.c \
    src/widgets/lv_switch.c \
    src/widgets/lv_table.c \
    src/widgets/lv_textarea.c

HEADERS += \
    LVGL_API.h \
    MY_QT_DEF.h \
    examples/porting/lv_port_disp.h \
    examples/porting/lv_port_indev.h \
    lv_conf.h \
    lvgl.h \
    mainwindow.h

FORMS += \
    mainwindow.ui

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

